package com.pgcomb.poweriot.alarmservice.alarm.sendAlarm;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhengheqi
 * @version 1.0
 * @description: 短信告警通知
 * @date 2021/5/31 17:35
 */
@Slf4j
@Component
public class SmsSender {
    //TODO 短信通知实现

    public boolean sendMsg(String message, List<String> smsTo){

        for (String phone : smsTo) {
            log.info("sms send to {}, msg:{}", phone, message);
        }

        return true;
    }

}
